all : my_wc1 my_wc2

my_wc1 : my_wc1.c
	gcc -o my_wc1 my_wc1.c -ll
my_wc1.c : my_wc1.l
	lex -o my_wc1.c my_wc1.l

my_wc2 : my_wc2.c
	gcc -o my_wc2 my_wc2.c -ll
my_wc2.c : my_wc2.l
	lex -o my_wc2.c my_wc2.l


clean:
	rm *.c my_wc?
